The wrapper classes should be compared by equals method rather than by symbol of '==' directly.
<p>Examples:</p>
<pre>
    Integer a = 235;
    Integer b = 235;
    if (a.equals(b)) {
        // code
    }
</pre>